package dk.modified.reshary;

import android.os.Parcel;
import android.os.Parcelable;

public class Share implements Parcelable{
	
	public static final int STATE_IMAGE = 1;
	public static final int STATE_GIF = 2;
	public static final int STATE_VIDEO = 3;
	
	private int mediaId;
	private int mediaState;

	private String userName;
	private String fileName;
	private String videoFilename;
	private String sharingUrl;
	private String ownerId;
	private String title;
	private String shares;

	
	
	public int getMediaState() {
		return mediaState;
	}

	public void setMediaState(int mediaState) {
		this.mediaState = mediaState;
	}
	
	
	public String getVideoFilename() {
		return videoFilename;
	}

	public void setVideoFilename(String videoFilename) {
		this.videoFilename = videoFilename;
	}
	
	public int getMediaId() {
		return mediaId;
	}

	public void setMediaId(int mediaId) {
		this.mediaId = mediaId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getSharingUrl() {
		return sharingUrl;
	}

	public void setSharingUrl(String sharingUrl) {
		this.sharingUrl = sharingUrl;
	}

	public String getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(String ownerId) {
		this.ownerId = ownerId;
	}

	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getShares() {
		return shares;
	}

	public void setShares(String shares) {
		this.shares = shares;
	}

	private Share(Parcel in) {
		mediaId = in.readInt();
		mediaState = in.readInt();
		userName = in.readString();
		fileName = in.readString();
		videoFilename = in.readString();
		sharingUrl = in.readString();
		ownerId = in.readString();
		title = in.readString();
		shares = in.readString();
	}

	public Share() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(mediaId);
		dest.writeInt(mediaState);
		dest.writeString(userName);
		dest.writeString(fileName);
		dest.writeString(videoFilename);
		dest.writeString(sharingUrl);
		dest.writeString(shares);
		dest.writeString(ownerId);
		dest.writeString(title);
		dest.writeString(shares);

	}

	public static final Parcelable.Creator<Share> CREATOR = new Parcelable.Creator<Share>() {
		public Share createFromParcel(Parcel in) {
			return new Share(in);
		}

		public Share[] newArray(int size) {
			return new Share[size];
		}
	};

}
